//
//  ProfileNavigationController.swift
//  App_Profile
//
//  Created by 蒋晨成 on 2021/12/27.
//

import Foundation
import UICore
import UIKit

class ProfileNavigationController: NavigationController {
    init() {
        super.init(rootViewController: ProfileHomeViewController(nibName: nil, bundle: nil))
        setup()
    }
}

extension ProfileNavigationController {
    override func viewDidLoad() {
        super.viewDidLoad()
        setup()
    }
}

private extension ProfileNavigationController {
    func setup() {
        let title = ProfileModular.localizedString(key: "Tabbar.Profile.Title")
        let image = ProfileModular.image(named: "Tabbar.Profile.Normal")
        let selectedImage = ProfileModular.image(named: "Tabbar.Profile.Selected")
        tabBarItem = UITabBarItem(title: title, image: image, selectedImage: selectedImage)
    }
}
